package com.eurasia.assignment.infrastructure.repository;

import org.springframework.data.jpa.repository.JpaRepository;

import com.eurasia.assignment.infrastructure.entity.CourseEntity;

/**
 * 课程数据访问接口
 */
public interface CourseRepository extends JpaRepository<CourseEntity, Long> {
    
    /**
     * 根据课程名称查找课程
     * @param courseName 课程名称
     * @return 课程实体
     */
    boolean existsByCourseName(String courseName);
} 